package com.jali.crud.test;

import it.sauronsoftware.jave.Encoder;
import it.sauronsoftware.jave.EncoderException;
import it.sauronsoftware.jave.MultimediaInfo;
import org.apache.ibatis.reflection.SystemMetaObject;

import java.io.File;

/**
 * @author jali
 * @create 2019-01-23 19:16
 */
public class FileUtil {
    public static void main(String[] args) throws EncoderException {
        File file = new File("G:\\Java视频\\Linux\\视频");
        for (File subFile : file.listFiles()){
            Encoder encoder = new Encoder();
            MultimediaInfo m = encoder.getInfo(subFile);
            System.out.println(subFile.getName() + " " + m.getDuration()/60000);
        }
    }
}
